﻿<%@ Page Title="" Language="C#" MasterPageFile="~/PBOfficeMaster.master" AutoEventWireup="true"
    CodeFile="MeetingRoomManager.aspx.cs" Inherits="MeetingRoomManager_MeetingRoomManager" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <style type="text/css">
        .branchtop
        {
            margin: 10px 50px;
            text-align: left;
            font-size: 12px;
        }
        .lbBranch
        {
            font-size: 14px;
            font-weight: bold;
            background-image: url('../imges/daohangbeijing1.jpg');
            background-repeat: no-repeat;
            text-align: center;
            margin: 0;
            color: White;
            padding-top: 7px;
            height: 22px;
            width: 110px;
        }
        .btnBranch
        {
            width: auto;
            height: 20px;
            background-color: #ccffff;
            border: 1px solid #000099;
            color: #000099;
        }
        hr
        {
            height: 1px;
            margin-left: 45px;
            color: Blue;
            width: 804px;
        }
        .txt
        {
            border: 1px solid #6699FF;
            color: Blue;
        }
        .grid
        {
            text-align: center;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div style="width: 864px; font-size: 14px;">
        <div class="branchtop">
            <table>
                <tr>
                    <td>
                        当前位置
                    </td>
                    <td>
                        <div class="lbBranch">
                            会议室管理</div>
                    </td>
                </tr>
            </table>
        </div>
        <hr />
        <div style=" text-align:right; padding-right:80px;"><a href="AddMeetingRoom.aspx">添加会议室</a></div>
        <div style=" margin:5px 100px;">
            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                Width="685px" onrowcommand="GridView1_RowCommand" 
                onrowdeleting="GridView1_RowDeleting">
                <AlternatingRowStyle BackColor="#CCFFCC" />
                <Columns>
                    <asp:BoundField DataField="RoomNo" HeaderText="编号" />
                    <asp:BoundField DataField="RoomName" HeaderText="名称" />
                    <asp:BoundField DataField="RoomArea" HeaderText="面积" />
                    <asp:BoundField DataField="Counts" HeaderText="人数" />
                    <asp:BoundField DataField="Equipment" HeaderText="设备" />
                    <asp:TemplateField HeaderText="类型">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox1" runat="server" 
                                Text='<%# Bind("RoomType.TypeName") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label1" runat="server" Text='<%# Bind("RoomType.TypeName") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="修改">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:ImageButton ID="ImageButton1" runat="server" CommandName="modify" 
                                ImageUrl="~/imges/modify.png" />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="删除">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:ImageButton ID="ImageButton2" CommandName="delete" runat="server" 
                                ImageUrl="~/imges/delete.png" />
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                 <HeaderStyle BackColor="#66CCFD" CssClass="grid" ForeColor="White" Height="25px" />
                <RowStyle CssClass="grid" />
            </asp:GridView>
        </div>
    </div>
</asp:Content>
